<div class="header">
  <div class="logo"></div>
  <div class="title">
    统一运维平台
    <div class="vstitle">v4.0</div>
  </div>
  <div class="menu">
    <div class="tools">
      
    </div>
  </div>
  <div class="admin" [class.select]='ss.show' (click)="ss.show=!ss.show">
    <span class="admin-user">
      <img *ngIf="!ss.user" src="../../assets/images/user.jpg" />
      <img *ngIf="ss.user" [src]="ss.user.uImage ? ss.user.uImage : '../../assets/images/user.jpg'" />
    </span>
    <span class="admin-name">{{ ss.user ? ss.user.userName : '管理员'}}</span>
  </div>
</div>
<div class="admin-dropdown-menu" *ngIf="ss.show">
  <!-- User image -->
  <div class="user-header">
    <img *ngIf="!ss.user" src="../../assets/images/user.jpg" />
    <img *ngIf="ss.user" [src]="ss.user.uImage ? ss.user.uImage : '../../assets/images/user.jpg'" />
    <p>
      {{ ss.user ? ss.user.userName : '管理员'}}
      <small>{{ ss.user ? ss.user.userOrgName : '系统管理部'}}</small>
    </p>
  </div>
  <!-- Menu Footer-->
  <div class="user-footer">
    <div class="pull-left">
      <a (click)="pd.modifyPassword()">设置</a>
    </div>
    <div class="pull-right">
      <a (click)="ss.loginOut()">退出</a>
    </div>
  </div>
</div>

<div class="content">
  <router-outlet></router-outlet>
</div>

<!-- 用户密码修改 -->
<app-ui-user-password #password></app-ui-user-password>